package com.neusoft.chatserver.dto;

import com.neusoft.chatserver.entity.Message;
import com.neusoft.chatserver.entity.Users;

import java.util.List;

public class MessageListDTO {
    private Users users;
    private List<Message> todayMessage;
    private int onlineStatus;
    private Message lastMessage;

    public MessageListDTO(Users users, List<Message> todayMessage, int onlineStatus, Message lastMessage) {
        this.users = users;
        this.todayMessage = todayMessage;
        this.onlineStatus = onlineStatus;
        this.lastMessage = lastMessage;
    }

    public Message getLastMessage() {
        return lastMessage;
    }

    public void setLastMessage(Message lastMessage) {
        this.lastMessage = lastMessage;
    }

    public int getOnlineStatus() {
        return onlineStatus;
    }

    public void setOnlineStatus(int onlineStatus) {
        this.onlineStatus = onlineStatus;
    }

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }

    public List<Message> getTodayMessage() {
        return todayMessage;
    }

    public void setTodayMessage(List<Message> todayMessage) {
        this.todayMessage = todayMessage;
    }

    @Override
    public String toString() {
        return "MessageListDTO{" +
                "users=" + users +
                ", todayMessage=" + todayMessage +
                ", onlineStatus=" + onlineStatus +
                '}';
    }
}
